package cn.edu.ujn.finallab.dao;

import java.util.HashMap;
import java.util.List;

import cn.edu.ujn.finallab.dao.Customer;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    

    Customer selectByName(String name);

    //查询顾客总数
    int selectCustomerCount();
    
    //通过起始记录，和记录size放到一个hashMap再封装到List里，
    List<Customer> selectByPageLimit(HashMap<String,Object> map);
    
    
    Customer selectByIdcard(String idcard);
    
    List<Orders> selectByOrderName(String name);

}